const path = require("path")
module.exports = {
  webpack:{
    alias:{
      "@":path.resolve(__dirname,"src")
    },
    rules: [
      {
        test: /\.scss$/,
        use: [
          'style-loader',
          'css-loader',
          'sass-loader'
        ]
      }
    ],
    css: {
      preprocessorOptions: {
          scss: {
              // 全局 SCSS
              additionalData: '@import "@/assets/computed.scss";'
              // ;不可省略否则会报错
          }
      }
  }

  }
}